package com.ch09.controller;

import com.ch09.service.UserService;
import org.springframework.stereotype.Controller;

/**
 * @ClassName UserController
 * @Description TODO
 * @Author Kx
 * @Date 2025/4/29 13:05
 * @Version 1.0
 */
@Controller
public class UserController {
    private UserService userService;

    public UserController(UserService userService) {
        this.userService = userService;
    }

    public void save() {
        System.out.println(userService);
        userService.add();
    }
}
